<?php
/**
 * File:          KValidator_Parameter_Select_Value
 * Description:   -
 * Author:        Kovac "Kovacou'" Alexandre (www.kovacou.fr)
 * Last Update:   21/04/2011
 */

   class KValidator_Parameter_Select_Value implements KValidatorParameter {
      public  $values;
      
      public function valid ($value, $config) {
         if (false === in_array($value, $this->values))
            return "Vous devez sélectionner une valeur valide.";
      }
   }
 
/**
 * End
 * Of
 * File
 */
?>